Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Check out the correct branch of nuttx repo when compiling nuttx-apps #2780

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

lupyuen
Copy link
Member

@lupyuen lupyuen commented Oct 27, 2024

Summary

When compiling the Release Branch of nuttx-apps, our CI Workflow build.yml checks out the Master Branch of nuttx repo, which is incorrect. This happens due to a typo in build.yml: apache/nuttx#14513

This PR fixes the typo in build.yml to checkout the correct branch of nuttx repo.

Impact

When compiling the Release Branch of nuttx-apps, our CI Workflow build.yml now checks out the Release Branch of nuttx repo.

No changes when compiling the Master Branch of nuttx and nuttx-apps repos.

Testing

Before the PR: Fetch-Source Log shows that CI is incorrectly checking out the Master Branch of nuttx repo (instead of releases/12.7): https://github.com/apache/nuttx-apps/actions/runs/11518661640/job/32069568370#step:3:66

/usr/bin/git checkout --progress --force -B master refs/remotes/origin/master

After the PR: When we change name to os_ref, CI correctly checks out the Release Branch of nuttx repo: https://github.com/lupyuen5/label-nuttx-apps/actions/runs/11528123257/job/32094821811#step:3:57

/usr/bin/git checkout --progress --force -B releases/12.7 refs/remotes/origin/releases/12.7

Regression Test:

Copy link

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @lupyuen :-) Go ahead when ready :-)

@lupyuen
Copy link
Member Author

lupyuen commented Oct 27, 2024

Thanks @cederom! I'll wait till Oct 30, don't want to mess up our perfect GitHub Runners now :-)

@cederom
Copy link

cederom commented Nov 2, 2024

i have restarted the CI for verification :-)

@lupyuen
Copy link
Member Author

lupyuen commented Nov 2, 2024

@cederom Thanks! Let's wait for the broken builds to clear, so we won't pile on more problems :-)

When compiling the Release Branch of `nuttx-apps`, our CI Workflow `build.yml` checks out the Master Branch of `nuttx` repo, which is incorrect. This happens due to a typo in `build.yml`: apache/nuttx#14513

This PR fixes the typo in `build.yml` to checkout the correct branch of `nuttx` repo.
@lupyuen lupyuen marked this pull request as ready for review November 4, 2024 02:35
@lupyuen lupyuen marked this pull request as draft November 4, 2024 02:36
@lupyuen lupyuen marked this pull request as ready for review November 4, 2024 04:14
@xiaoxiang781216 xiaoxiang781216 merged commit 594558e into apache:master Nov 4, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] When building nuttx-apps, CI Workflow checks out the Incorrect Branch of nuttx repo
3 participants